package com.sne.airways.basecore.constants;

import com.sne.airways.basecore.enums.IEnum;

/**
 * Created with IntelliJ IDEA.
 * User: skyline{http://my.oschina.net/skyline520}
 * Date: 12-11-27
 * Time: 下午3:34
 * To change this template use File | Settings | File Templates.
 */
public enum StatusCode implements IEnum {
    用户登录信息失效("401.1","用户登录信息失效"),
    无操作权限("403.1","无操作权限"),
    未知异常("500.1","未知异常"),
    缓存信息失效("500.2","缓存信息失效"),
    当前对象已经改更改("301.1","当前对象已经改更改"),
    业务逻辑错误("206.1","业务逻辑错误")
    ;

    private String key;
    private String value;

    StatusCode(String key, String value) {
        this.value = value;
        this.key = key;
    }

    @Override
    public String getKey() {
        return key;
    }

    @Override
    public void setKey(String key) {
        this.key = key;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public void setValue(String value) {
        this.value = value;
    }
}
